projects
/
gpsbabel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
170e1ea
)
Improve error from xcalloc().
author
robertl
<robertl>
Tue, 20 Nov 2007 04:31:06 +0000
(
04:31
+0000)
committer
robertl
<robertl>
Tue, 20 Nov 2007 04:31:06 +0000
(
04:31
+0000)
util.c
patch
|
blob
|
history
diff --git
a/util.c
b/util.c
index fc3e74e21b2aaaaeda6cbfed7f046ccc39dc5d24..a6f89c2b3111be18fb7a885fd85a70597ff5531f 100644
(file)
--- a/
util.c
+++ b/
util.c
@@
-101,7
+101,7
@@
xcalloc(size_t nmemb, size_t size)
#endif
if (!obj) {
- fatal("gpsbabel: Unable to allocate %ld
bytes of memory.\n"
, (unsigned long) size);
+ fatal("gpsbabel: Unable to allocate %ld
units of %ld bytes of memory.\n", (unsigned long) nmemb
, (unsigned long) size);
}
return obj;